SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
SftPrintPreview/DLL has built-in support for the standard Windows RichEdit control, also known as RichTextBox control, allowing print preview and printing of its contents.
The PreviewRichEdit sample demonstrates how a RichEdit control is used with SftPrintPreview/DLL. The source code for this sample is included for both C and C++/MFC and is available in the product directory \Program Files\Softelvdm\SftPrintPreview DLL 2.0\Samples.
The contents of the RichEdit control are displayed across the full width of the page, with all formatting defined using the RichEdit control's API functions. The iContentSizing member of the SFTPRINTPREVIEW_CONTROL structure has no effect, when previewing/printing a RichEdit control.
When previewing/printing a RichEdit control, only TrueType or ClearType fonts should be used, to insure proper scaling and resizing of all generated output.
C
SFTPRINTPREVIEW_CONTROL Ctl; Ctl.cbSize = sizeof(SFTPRINTPREVIEW_CONTROL); if (!SftPrintPreview_GetControlInfo(hwndCtl, &Ctl)) _ASSERT(0); // error handling // define desired contents to preview/print Ctl.lpDrawPageWorkArea = (SFTPRINTPREVIEW_DWORD_PTR) NULL; Ctl.lpDrawInfoProc = SftPrintPreview_RenderRicheditWindow_Callback; Ctl.hwndContent = hwndRichEdit; // the RichEdit control window Ctl.hwndData = NULL; // no data window (content window is data window) if (!SftPrintPreview_SetControlInfo(hwndCtl, &Ctl)) { int errorValue = Ctl.errorValue; _ASSERT(0); // an error occurred, check errorValue for error codes }
C++
afx_msg void OnFilePrintPreview() { FilePrintPreview(this, RUNTIME_CLASS(CRichEditPreview), m_RichEdit.m_hWnd, SftPrintPreview_RenderRicheditWindow_Callback); }